package com.gqr.springcloud;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


@SpringBootApplication
@EnableDiscoveryClient
public class ConfigClientApplication {

    public static void main(String[] args) throws NoSuchMethodException {
        new SpringApplicationBuilder(ConfigClientApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
        // http://localhost:60000/main/config-consumer-dev.yml
        // http://localhost:60000/main/config-consumer-dev.properties
        // http://localhost:60000/main/config-consumer-dev.json
        // http://localhost:60000/config-consumer/dev/main/

    }

}